From a61ef1af6f0f221bb593065a67538b94dc394048 Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Mon, 18 Sep 2006 16:25:09 +0000 Subject: [PATCH] Integrate dh_ocaml to the package. --- Makefile | 64 ----- configure | 12 - dh_ocaml => debian/dh-ocaml/dh_ocaml | 0 doc/registry_feeding.txt | 36 --- doc/substvar_filling.txt | 24 -- ocaml-md5sums.ml.in | 314 ---------------------- postinst-ocaml | 3 - postrm-ocaml | 5 - samples/README | 5 - samples/debian/package.ocamldeps | 1 - samples/debian/package.ocamlobjects | 2 - samples/debian/package.ocamlobjinfo | 35 --- samples/md5sums/MD5SUMS | 20 -- samples/md5sums/libbar-ocaml-dev.md5sums | 4 - samples/md5sums/libfoo-ocaml-dev.md5sums | 2 - samples/md5sums/libhttp-ocaml-dev.md5sums | 13 - samples/md5sums/libpcre-ocaml-dev.md5sums | 1 - samples/md5sums/ocaml-base-nox.md5sums | 3 - samples/ocamlobjinfo.out | 206 -------------- 19 files changed, 750 deletions(-) delete mode 100644 Makefile delete mode 100755 configure rename dh_ocaml => debian/dh-ocaml/dh_ocaml (100%) delete mode 100644 doc/registry_feeding.txt delete mode 100644 doc/substvar_filling.txt delete mode 100644 ocaml-md5sums.ml.in delete mode 100644 postinst-ocaml delete mode 100644 postrm-ocaml delete mode 100644 samples/README delete mode 100644 samples/debian/package.ocamldeps delete mode 100644 samples/debian/package.ocamlobjects delete mode 100644 samples/debian/package.ocamlobjinfo delete mode 100644 samples/md5sums/MD5SUMS delete mode 100644 samples/md5sums/libbar-ocaml-dev.md5sums delete mode 100644 samples/md5sums/libfoo-ocaml-dev.md5sums delete mode 100644 samples/md5sums/libhttp-ocaml-dev.md5sums delete mode 100644 samples/md5sums/libpcre-ocaml-dev.md5sums delete mode 100644 samples/md5sums/ocaml-base-nox.md5sums delete mode 100644 samples/ocamlobjinfo.out diff --git a/Makefile b/Makefile deleted file mode 100644 index 8222dedd..00000000 --- a/Makefile +++ /dev/null @@ -1,64 +0,0 @@ - -DEBHELPER_VERSION := $(patsubst %+dh_ocaml,%,$(shell grep-available -X -F Package -s Version debhelper | cut -f 2 -d ' ')) -# DEBHELPER_VERSION = 4.9.5 -OCAML_VERSION = 3.08.3 -OCAML_LIB_DIR = /usr/lib/ocaml/$(OCAML_VERSION) -DEBHELPER_DSC = debhelper_$(DEBHELPER_VERSION).dsc -NEW_DEBHELPER_VERSION = $(DEBHELPER_VERSION)+dh_ocaml -DEBHELPER_DIR = debhelper-$(DEBHELPER_VERSION) -NEW_DEBHELPER_DIR = debhelper-$(NEW_DEBHELPER_VERSION) -FED_SUMS = ocaml-nox.md5sums ocaml.md5sums ocaml-compiler-libs.md5sums -OCAMLC = ocamlc -OCAMLOPT = ocamlopt -OCAML_LIBS = unix str -SCRIPTS = postinst-ocaml postrm-ocaml - -all: ocaml-md5sums -opt: ocaml-md5sums.opt -world: all opt - -ocaml-md5sums.ml: ocaml-md5sums.ml.in - ./configure -ocaml-md5sums: ocaml-md5sums.ml - $(OCAMLC) $(patsubst %,%.cma,$(OCAML_LIBS)) -o $@ $< -ocaml-md5sums.opt: ocaml-md5sums.ml - $(OCAMLOPT) $(patsubst %,%.cmxa,$(OCAML_LIBS)) -o $@ $< - -$(DEBHELPER_DSC): - apt-get -d source debhelper - -debhelper: $(SCRIPTS) $(DEBHELPER_DSC) - rm -rf $(DEBHELPER_DIR)/ $(NEW_DEBHELPER_DIR)/ - dpkg-source -x debhelper_$(DEBHELPER_VERSION).dsc - cp dh_ocaml $(DEBHELPER_DIR)/ - cp $(SCRIPTS) $(DEBHELPER_DIR)/autoscripts/ - cd $(DEBHELPER_DIR) \ - && dch --newversion $(NEW_DEBHELPER_VERSION) "added dh_ocaml" \ - && debuild binary - -feeding: $(FED_SUMS) -%.md5sums: ocaml-md5sums - dpkg -L $* \ - | grep '.cm[ao]' \ - | grep -v ^$(OCAML_LIB_DIR)/ocamldoc/ \ - | grep -v ^$(OCAML_LIB_DIR)/camlp4/ \ - | ./ocaml-md5sums compute \ - --package $*-$(OCAML_VERSION) \ - --runtime $(patsubst ocaml%, ocaml-base%, $*)-$(OCAML_VERSION) \ - | sort -k 2 \ - > $@ -ocaml-compiler-libs.md5sums: ocaml-md5sums ocaml-nox.md5sums - dpkg -L ocaml-compiler-libs \ - | grep '.cm[ao]' \ - | ./ocaml-md5sums compute \ - --package ocaml-compiler-libs-$(OCAML_VERSION) \ - | sort -k 2 \ - > $@ - -%: %.in - wml -p 1-3 $< > $@ - -clean: - rm -f ocaml-md5sums ocaml-md5sums.opt $(FED_SUMS) - rm -f *.cm[aiox] *.cmxa *.[ao] - diff --git a/configure b/configure deleted file mode 100755 index 5bf91900..00000000 --- a/configure +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -DEFAULT="/var/lib/ocaml/md5sums" -if [ -z "$1" ]; then - echo "No dir provided, using default: $DEFAULT" - echo "You can override it with: ./configure [ md5sums_dir ]" - MD5SUMS_DIR="$DEFAULT" -else - MD5SUMS_DIR="$1" -fi -echo -n "Creating ocaml-md5sums.ml ... " -sed "s:@MD5SUMS_DIR@:$MD5SUMS_DIR:" < ocaml-md5sums.ml.in > ocaml-md5sums.ml -echo "done." diff --git a/dh_ocaml b/debian/dh-ocaml/dh_ocaml similarity index 100% rename from dh_ocaml rename to debian/dh-ocaml/dh_ocaml diff --git a/doc/registry_feeding.txt b/doc/registry_feeding.txt deleted file mode 100644 index 6482b53f..00000000 --- a/doc/registry_feeding.txt +++ /dev/null @@ -1,36 +0,0 @@ -entries which should be pre-fed into the registry at ocaml package installation -time: - -- ocaml-nox-VERSION [*] - registry entry can be generated with: - - dpkg -L ocaml-nox | - grep '.cm[ao]' | - grep -v ^/usr/lib/ocaml/3.08.3/ocamldoc/ | - grep -v ^/usr/lib/ocaml/3.08.3/campl4/ | - ocaml-md5sums compute \ - --package ocaml-nox-3.08.3 --runtime ocaml-base-nox-3.08.3 - -- ocaml-VERSION [*] - registry entry can be generated with: - - dpkg -L ocaml | - grep '.cm[ao]' | - grep -v ^/usr/lib/ocaml/3.08.3/ocamldoc/ | - grep -v ^/usr/lib/ocaml/3.08.3/campl4/ | - ocaml-md5sums compute \ - --package ocaml-3.08.3 --runtime ocaml-base-3.08.3 - -- ocaml-compiler-libs-VERSION - registry entry can be generated with: - dpkg -L ocaml-compiler-libs | - grep '.cm[ao]' | - ocaml-md5sums compute \ - --package ocaml-compiler-libs-3.08.3 - -[*] entries in LIBDIR/ocamldoc/ and LIBDIR/camlp4/ are skipped since they - contains .cmas which link units that should be indexed per - ocaml-compiler-libs. Skipping them avoids duplicate entries in the registry - -Sat, 09 Jul 2005 13:44:50 +0200 zack - diff --git a/doc/substvar_filling.txt b/doc/substvar_filling.txt deleted file mode 100644 index ed2f8b73..00000000 --- a/doc/substvar_filling.txt +++ /dev/null @@ -1,24 +0,0 @@ - -Informal description of the ${ocaml:Depends} filling algorithm. - -- delsubstvar("ocaml:Depends") -- if pkgname is "libfoo-ocaml-dev" - (handle also "ocaml:Depends" for "libfoo-ocaml" if it does exist) - - find all installed .cm[ao] - - run "ocaml-md5sums dep" on them - - let D be the set of resulting dependencies - - foreach d in D of the form - - addsubstvar("ocaml:Depends", "libfoo-ocaml-dev", dev-dependency, version) - - if exists package "libfoo-ocaml" and exists runtime-dependency - - addsubstvar("ocaml:Depends", "libfoo-ocaml", runtime-dependency, version) -- if pkgname is something else - - find all installed ocaml bytecode binaries - - guess corresponding .cm[ao] - - run "ocaml-md5sums dep" on them - - let D be the set of resulting dependencies - - foreach d in D of the form - - if exists runtime-dependency - - addsubstvar("ocaml:Depends", pkgname, runtime-dependency, version) - -Sat, 09 Jul 2005 13:44:59 +0200 zack - diff --git a/ocaml-md5sums.ml.in b/ocaml-md5sums.ml.in deleted file mode 100644 index c81a5348..00000000 --- a/ocaml-md5sums.ml.in +++ /dev/null @@ -1,314 +0,0 @@ -(* - * ocaml-md5sums - use and maintain debian registry of ocaml md5sums - * - * Copyright (C) 2005, Stefano Zacchiroli - * - * Created: Wed, 06 Apr 2005 16:55:39 +0200 zack - * Last-Modified: Fri, 12 Aug 2005 10:28:10 +0200 zack - * - * This is free software, you can redistribute it and/or modify it under the - * terms of the GNU General Public License version 2 as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place, Suite 330, Boston, MA 02111-1307 USA - *) - -open Printf - -(** {2 Constants} *) - -let md5sums_dir = "@MD5SUMS_DIR@" -let md5sums_index = "MD5SUMS" -let md5sums_ext = ".md5sums" -let registry_file = sprintf "%s/%s" md5sums_dir md5sums_index - -(** {2 System requirements} *) - -let ocamlobjinfo = - try (* needed at ocaml package build time, when *) - Sys.getenv "OCAMLOBJINFO" (* ocamlobjinfo is not yet installed *) - with Not_found -> "/usr/bin/ocamlobjinfo" - -(** {2 Regular expressions, for parsing purposes} *) - -let unit_name_line_RE = - Str.regexp "^[ \t]*Unit[ \t]+name[ \t]*:[ \t]*\\([a-zA-Z0-9_]+\\)[ \t]*$" -let md5sum_line_RE = - Str.regexp "^[ \t]*\\([a-f0-9]+\\)[ \t]+\\([a-zA-Z0-9_]+\\)[ \t]*$" -let blanks_RE = Str.regexp "[ \t]+" -let ignorable_line_RE = Str.regexp "^[ \t]*\\(#.*\\)?" -let md5sums_ext_RE = Str.regexp (sprintf "^.*%s$" (Str.quote md5sums_ext)) - -(** {2 Argument parsing} *) - -let objects = ref [] -let dev_dep = ref "" -let runtime_dep = ref "-" -let dep_version = ref "-" -let verbosity = ref 0 -let dump_info_to = ref "" -let load_info_from = ref "" -let action = ref None - -let usage_msg = - "Use and maintain system wide ocaml md5sums registry\n" - ^ "Usage:\n" - ^ " ocaml-md5sum compute --package [option ...] file ...\n" - ^ " ocaml-md5sum dep [option ...] file ...\n" - ^ " ocaml-md5sum update [option ...]\n" - ^ "Options:" -let cmdline_spec = [ - "--package", Arg.Set_string dev_dep, - "set package name for development dependency"; - "--runtime", Arg.Set_string runtime_dep, - "set package name for runtime dependency"; - "--version", Arg.Set_string dep_version, - "set package version for dependencies"; - "--dump-info", Arg.Set_string dump_info_to, - "dump ocamlobjinfo to file"; - "--load-info", Arg.Set_string load_info_from, - "restore ocamlobjinfo from file"; - "-v", Arg.Unit (fun () -> incr verbosity), "increase verbosity"; -] -let die_usage () = - Arg.usage cmdline_spec usage_msg; - exit 1 - -(** {2 Helpers} *) - -let error msg = prerr_endline ("Error: " ^ msg); exit 2 -let warning msg = prerr_endline ("Warning: " ^ msg) -let info ?(level = 1) msg = - if !verbosity >= level then prerr_endline ("Info: " ^ msg) -let iter_in f ic = - try while true do f (input_line ic) done with End_of_file -> () -let iter_file f fname = - let ic = open_in fname in - iter_in f ic; - close_in ic -let iter_table f = iter_file (fun line -> f (Str.split blanks_RE line)) - -module Strings = Set.Make (String) - -(** read until the end of standard input - * @return the list of lines read from stdin, without trailing "\n" *) -let read_stdin () = - let lines = ref [] in - iter_in (fun s -> lines := s :: !lines) stdin; - List.rev !lines - -let is_empty fname = (Unix.stat fname).Unix.st_size = 0 -let is_regular fname = (Unix.stat fname).Unix.st_kind = Unix.S_REG -let is_dir fname = (Unix.stat fname).Unix.st_kind = Unix.S_DIR - -(** {2 Auxiliary functions} *) - -(** loads info previously stored in a file using --dump-info and stores them in - * two hashtables - * @param defined hashtable for md5sums of defined units - * @param imported hashtable for md5sums of imported units - * @param fname file where the dump has been saved *) -let load_info ~defined ~imported fname = - info ("loading ocamlobjinfo information from " ^ fname); - let lineno = ref 0 in - iter_table - (fun fields -> - incr lineno; - match fields with - | [ "defined"; md5; unit_name ] -> - info ~level:2 (String.concat " " fields); - Hashtbl.replace defined unit_name md5 - | [ "imported"; md5; unit_name ] -> - info ~level:2 (String.concat " " fields); - Hashtbl.replace imported unit_name md5 - | _ -> - warning (sprintf "ignoring dump entry (%s, line %d)" fname !lineno)) - fname - -(** dumps ocamlobjinfo to file - * @param defined hashtable containing md5sums of defined units - * @param imported hashtable containing md5sums of imported units - * @param fname file where to dump ocamlobjinfo *) -let dump_info ~defined ~imported fname = - info ("dumping ocamlobjinfo information to " ^ fname); - let oc = open_out fname in - Hashtbl.iter - (fun unit_name md5sum -> fprintf oc "defined %s %s\n" md5sum unit_name) - defined; - Hashtbl.iter - (fun unit_name md5sum -> fprintf oc "imported %s %s\n" md5sum unit_name) - imported; - close_out oc - -(** @param fnames list of *.cm[ao] file names - * @return a pair of hash tables . Both tables - * contains mappings . defined_units lists units defined in - * given files while imported_units imported ones *) -let unit_info fnames = - let (defined, imported) = (Hashtbl.create 1024, Hashtbl.create 1024) in - if !load_info_from <> "" then - load_info ~defined ~imported !load_info_from; - List.iter - (fun fname -> - info ("getting unit info from " ^ fname); - let current_unit = ref "" in - let ic = Unix.open_process_in (sprintf "%s %s" ocamlobjinfo fname) in - iter_in - (fun line -> - if Str.string_match unit_name_line_RE line 0 then - current_unit := Str.matched_group 1 line - else if Str.string_match md5sum_line_RE line 0 then - let md5sum = Str.matched_group 1 line in - let unit_name = Str.matched_group 2 line in - if unit_name = !current_unit then begin (* defined unit *) - let dump_entry = sprintf "defined %s %s" md5sum unit_name in - info ~level:2 dump_entry; - Hashtbl.replace defined unit_name md5sum - end else begin (* imported unit *) - let dump_entry = sprintf "imported %s %s" md5sum unit_name in - info ~level:2 dump_entry; - Hashtbl.replace imported unit_name md5sum - end) - ic; - close_in ic) - fnames; - Hashtbl.iter (* imported := imported - defined *) - (fun unit_name _ -> Hashtbl.remove imported unit_name) - defined; - if !dump_info_to <> "" then - dump_info ~defined ~imported !dump_info_to; - (defined, imported) - -(** pretty print a registry entry sending output to an output channel *) -let pp_entry outchan ~md5sum ~unit_name ~dev_dep ~runtime_dep ~dep_version = - fprintf outchan "%s %s %s %s %s\n" - md5sum unit_name dev_dep runtime_dep dep_version - -(** iter a function over the entries of a registry file - * @param f function to be executed for each entries, it takes 4 labeled - * arguments: ~md5sum ~unit_name ~package ?version - * @param fname file containining the registry *) -let iter_registry f fname = - info ("processing registry " ^ fname); - let lineno = ref 0 in - iter_file - (fun line -> - incr lineno; - (match Str.split blanks_RE line with - | [ md5sum; unit_name; dev_dep; runtime_dep; dep_version ] -> - f ~md5sum ~unit_name ~dev_dep ~runtime_dep ~dep_version - | _ when Str.string_match ignorable_line_RE line 0 -> () - | _ -> - warning (sprintf "ignoring registry entry (%s, line %d)" - fname !lineno))) - fname - -(** @param fname file name of the registry file, if fname does not exists an - * empty registry will be returned - * @return an hashtbl mapping pairs to pairs . E.g. ("Foo_bar", "74be7fa4320ebd9415f1c7cfc04c2d7b") -> - * ("libfoo-ocaml-dev", ">= 1.2.3-4") *) -let parse_registry fname = - let registry = Hashtbl.create 1024 in - if Sys.file_exists fname then - iter_registry - (fun ~md5sum ~unit_name ~dev_dep ~runtime_dep ~dep_version -> - Hashtbl.replace registry (unit_name, md5sum) - (dev_dep, runtime_dep, dep_version)) - fname; - registry - -(** {2 Main functions, one for each command line action} *) - -(** compute registry entry for a set of ocaml objects *) -let compute dev_dep runtime_dep dep_version objects () = - let defined, _ = unit_info objects in - Hashtbl.iter - (fun unit_name md5sum -> - pp_entry stdout ~md5sum ~unit_name ~dev_dep ~runtime_dep ~dep_version) - defined - -(** compute package dependencies for a set of ocaml objects *) -let dep objects () = - let _, imported = unit_info objects in - let registry = parse_registry registry_file in - let deps = - Hashtbl.fold - (fun unit_name md5sum deps -> - try - let (dev_dep, runtime_dep, dep_version) = - Hashtbl.find registry (unit_name, md5sum) - in - Strings.add (sprintf "%s %s %s" dev_dep runtime_dep dep_version) deps - with Not_found -> deps) - imported - Strings.empty - in - Strings.iter print_endline deps - -(** update debian registry of ocaml md5sums *) -let update () = - info (sprintf "updating registry %s using info from %s/" - registry_file md5sums_dir); - let keys = Hashtbl.create 1024 in (* history of seen registry keys *) - if Sys.file_exists md5sums_dir && is_dir md5sums_dir then begin - let dir = Unix.opendir md5sums_dir in - let registry = open_out registry_file in - try - while true do - let fname = sprintf "%s/%s" md5sums_dir (Unix.readdir dir) in - if (Str.string_match md5sums_ext_RE fname 0) && is_regular fname then - iter_registry - (fun ~md5sum ~unit_name ~dev_dep ~runtime_dep ~dep_version -> - if Hashtbl.mem keys (unit_name, md5sum) then - error (sprintf "duplicate entry %s %s in registry" unit_name - md5sum); - Hashtbl.replace keys (unit_name, md5sum) (); - pp_entry registry ~md5sum ~unit_name ~dev_dep ~runtime_dep - ~dep_version) - fname - done - with End_of_file -> - Unix.closedir dir; - close_out registry; - if is_empty registry_file then Sys.remove registry_file - end else - warning (sprintf "%s/ does not exist or is not a directory, not updating" - md5sums_dir) - -(** {2 Main} *) - -(** main *) -let main () = - Arg.parse cmdline_spec - (fun s -> - if !action = None then - action := Some s - else - objects := s :: !objects) - usage_msg; - match !action with - | Some "update" -> update () - | Some action -> - let objects = - match !objects with - | [] when !load_info_from = "" -> read_stdin () - | objects -> List.rev objects - in - (match action with - | "compute" -> - if !dev_dep = "" then die_usage (); - compute !dev_dep !runtime_dep !dep_version objects () - | "dep" -> dep objects () - | _ -> die_usage ()) - | None -> die_usage () - -let _ = Unix.handle_unix_error main () - diff --git a/postinst-ocaml b/postinst-ocaml deleted file mode 100644 index 734c0870..00000000 --- a/postinst-ocaml +++ /dev/null @@ -1,3 +0,0 @@ -if [ "$1" = "configure" ]; then - /usr/bin/ocaml-md5sums update -fi diff --git a/postrm-ocaml b/postrm-ocaml deleted file mode 100644 index 30436a46..00000000 --- a/postrm-ocaml +++ /dev/null @@ -1,5 +0,0 @@ -if [ "$1" = "remove" ]; then - if [ -x /usr/bin/ocaml-md5sums ]; then - /usr/bin/ocaml-md5sums update - fi -fi diff --git a/samples/README b/samples/README deleted file mode 100644 index 6c1abc41..00000000 --- a/samples/README +++ /dev/null @@ -1,5 +0,0 @@ -samples of various kind of files related to dh_ocaml: -- md5sums/ - example of /var/lib/ocaml/md5sums directory -- debian/ - example of temporary files created/used by dh_ocaml diff --git a/samples/debian/package.ocamldeps b/samples/debian/package.ocamldeps deleted file mode 100644 index 370f633e..00000000 --- a/samples/debian/package.ocamldeps +++ /dev/null @@ -1 +0,0 @@ -libpcre-ocaml-dev 5.08.1 diff --git a/samples/debian/package.ocamlobjects b/samples/debian/package.ocamlobjects deleted file mode 100644 index 0ff92821..00000000 --- a/samples/debian/package.ocamlobjects +++ /dev/null @@ -1,2 +0,0 @@ -debian/libhttp-ocaml-dev/usr/lib/ocaml/3.08.3/http/http_mt.cma -debian/libhttp-ocaml-dev/usr/lib/ocaml/3.08.3/http/http.cma diff --git a/samples/debian/package.ocamlobjinfo b/samples/debian/package.ocamlobjinfo deleted file mode 100644 index 9e1be5be..00000000 --- a/samples/debian/package.ocamlobjinfo +++ /dev/null @@ -1,35 +0,0 @@ -defined c05573de1d16c626829a86a9114178a3 Http_constants -defined 1aa78eb234c3fc3bc0f416b291573a6f Http_types -defined a3a8d51dd2bd69e7352f8f339875f0a5 Http_request -defined e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser -defined 86c5eaed52521c5606cb4de8885cb266 Http_message -defined 5207ef38468f5d823fc8b4d165f910b0 Http_daemon -defined 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc -defined 9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity -defined 35ef57fc877713cafe0056af23e72f71 Http_threaded_tcp_server -defined e5acc406e34cd0fed3383020b7adddc3 Http_tcp_server -defined aeb4d75d3f09d12fbce675d38c459007 Http_common -defined 19439a1c72f7e75bc192c83f3940aa50 Http_response -defined 6511422bf82e8975861e4959a09d7874 Http_user_agent -imported a904b798dd9665c2d3635636d293403c Array -imported f8ae506a7cb4411e963d4472e99129ab CamlinternalOO -imported fec8292bb1a02d2c7b8b4ba7b83a7d8b String -imported 1876ce678cfa5a1961fac21850f71efd Unix -imported 3e948b0e41d832c5b47173bc09ac8150 Netencoding -imported 71f888453b0f26895819460a72f07493 Pervasives -imported 05c29ad9b353d94564b9f8f4672a3c66 Thread -imported 2228f51249f46513c6197a189eda178f Netconversion -imported 5a0e3217fc356bd18f60bff31861dfd3 List -imported 0adcd5a01603ded6c591dc6133498d65 Gc -imported a5bb944075f8bf57d7a53a727ebad18c Printexc -imported d2109515bc23cdb3fdf5138eb0753ef1 Neturl -imported 8cce770a42b7d0e4d85569c15d7841d6 Sys -imported 1a18647ed18cd2752c5d8b422aef8fc7 Netbuffer -imported d2bc46d76835aafc05c738e5c8f8d36f Netchannels -imported 45f466ce46f213dae41be77dd8505f5f Buffer -imported 747ef8c0279596e8e3ead3d8049103ed Obj -imported fe56d403fb8e5d3f355cd87c60345c17 Netdate -imported 4153115c366a8fde539da120f5e0b928 Lexing -imported 21f21a0fe1dc667be7e854f573c182b7 Hashtbl -imported be82cfc078031e7e98378d3e89d18aec Printf -imported 2f32d87da163d280dc00661dca5ba351 Pcre diff --git a/samples/md5sums/MD5SUMS b/samples/md5sums/MD5SUMS deleted file mode 100644 index 747a054f..00000000 --- a/samples/md5sums/MD5SUMS +++ /dev/null @@ -1,20 +0,0 @@ -45f466ce46f213dae41be77dd8505f5f Foo_bad libbar-ocaml-dev 2.3-1 -45aaaaae46f213dae41be77dd8505f5f Foo_baz libbar-ocaml-dev 2.3-1 -45f466ce4fffffdae41be77dd8505f5f Foo_baa libbar-ocaml-dev 2.3-1 -000006ce46f2130ae41be77dd8505f5f Foo_bav libbar-ocaml-dev 2.3-1 -45f466ce46f213dae41be77dd8505f5f Foo_bar libfoo-ocaml-dev 1.2.3-4 -00000000000000000000077dd8505f5f Ack_nck libfoo-ocaml-dev 1.2.3-4 -aeb4d75d3f09d12fbce675d38c459007 Http_common libhttp-ocaml-dev 0.1.1+dev -c05573de1d16c626829a86a9114178a3 Http_constants libhttp-ocaml-dev 0.1.1+dev -5207ef38468f5d823fc8b4d165f910b0 Http_daemon libhttp-ocaml-dev 0.1.1+dev -86c5eaed52521c5606cb4de8885cb266 Http_message libhttp-ocaml-dev 0.1.1+dev -7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc libhttp-ocaml-dev 0.1.1+dev -e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser libhttp-ocaml-dev 0.1.1+dev -9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity libhttp-ocaml-dev 0.1.1+dev -a3a8d51dd2bd69e7352f8f339875f0a5 Http_request libhttp-ocaml-dev 0.1.1+dev -19439a1c72f7e75bc192c83f3940aa50 Http_response libhttp-ocaml-dev 0.1.1+dev -e5acc406e34cd0fed3383020b7adddc3 Http_tcp_server libhttp-ocaml-dev 0.1.1+dev -35ef57fc877713cafe0056af23e72f71 Http_threaded_tcp_server libhttp-ocaml-dev 0.1.1+dev -1aa78eb234c3fc3bc0f416b291573a6f Http_types libhttp-ocaml-dev 0.1.1+dev -6511422bf82e8975861e4959a09d7874 Http_user_agent libhttp-ocaml-dev 0.1.1+dev -2f32d87da163d280dc00661dca5ba351 Pcre libpcre-ocaml-dev 5.08.1 diff --git a/samples/md5sums/libbar-ocaml-dev.md5sums b/samples/md5sums/libbar-ocaml-dev.md5sums deleted file mode 100644 index 81d52bcf..00000000 --- a/samples/md5sums/libbar-ocaml-dev.md5sums +++ /dev/null @@ -1,4 +0,0 @@ -45f466ce46f213dae41be77dd8505f5f Foo_bad libbar-ocaml-dev 2.3-1 -45aaaaae46f213dae41be77dd8505f5f Foo_baz libbar-ocaml-dev 2.3-1 -45f466ce4fffffdae41be77dd8505f5f Foo_baa libbar-ocaml-dev 2.3-1 -000006ce46f2130ae41be77dd8505f5f Foo_bav libbar-ocaml-dev 2.3-1 diff --git a/samples/md5sums/libfoo-ocaml-dev.md5sums b/samples/md5sums/libfoo-ocaml-dev.md5sums deleted file mode 100644 index bd25aab9..00000000 --- a/samples/md5sums/libfoo-ocaml-dev.md5sums +++ /dev/null @@ -1,2 +0,0 @@ -45f466ce46f213dae41be77dd8505f5f Foo_bar libfoo-ocaml-dev 1.2.3-4 -00000000000000000000077dd8505f5f Ack_nck libfoo-ocaml-dev 1.2.3-4 diff --git a/samples/md5sums/libhttp-ocaml-dev.md5sums b/samples/md5sums/libhttp-ocaml-dev.md5sums deleted file mode 100644 index 36b2152e..00000000 --- a/samples/md5sums/libhttp-ocaml-dev.md5sums +++ /dev/null @@ -1,13 +0,0 @@ -aeb4d75d3f09d12fbce675d38c459007 Http_common libhttp-ocaml-dev 0.1.1+dev -c05573de1d16c626829a86a9114178a3 Http_constants libhttp-ocaml-dev 0.1.1+dev -5207ef38468f5d823fc8b4d165f910b0 Http_daemon libhttp-ocaml-dev 0.1.1+dev -86c5eaed52521c5606cb4de8885cb266 Http_message libhttp-ocaml-dev 0.1.1+dev -7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc libhttp-ocaml-dev 0.1.1+dev -e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser libhttp-ocaml-dev 0.1.1+dev -9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity libhttp-ocaml-dev 0.1.1+dev -a3a8d51dd2bd69e7352f8f339875f0a5 Http_request libhttp-ocaml-dev 0.1.1+dev -19439a1c72f7e75bc192c83f3940aa50 Http_response libhttp-ocaml-dev 0.1.1+dev -e5acc406e34cd0fed3383020b7adddc3 Http_tcp_server libhttp-ocaml-dev 0.1.1+dev -35ef57fc877713cafe0056af23e72f71 Http_threaded_tcp_server libhttp-ocaml-dev 0.1.1+dev -1aa78eb234c3fc3bc0f416b291573a6f Http_types libhttp-ocaml-dev 0.1.1+dev -6511422bf82e8975861e4959a09d7874 Http_user_agent libhttp-ocaml-dev 0.1.1+dev diff --git a/samples/md5sums/libpcre-ocaml-dev.md5sums b/samples/md5sums/libpcre-ocaml-dev.md5sums deleted file mode 100644 index ec222aa7..00000000 --- a/samples/md5sums/libpcre-ocaml-dev.md5sums +++ /dev/null @@ -1 +0,0 @@ -2f32d87da163d280dc00661dca5ba351 Pcre libpcre-ocaml-dev 5.08.1 diff --git a/samples/md5sums/ocaml-base-nox.md5sums b/samples/md5sums/ocaml-base-nox.md5sums deleted file mode 100644 index 1a00a3fa..00000000 --- a/samples/md5sums/ocaml-base-nox.md5sums +++ /dev/null @@ -1,3 +0,0 @@ -# this is a comment -# version information (4th field) is optional as in the following example -71f888453b0f26895819460a72f07493 Pervasives ocaml-nox-3.08.3 diff --git a/samples/ocamlobjinfo.out b/samples/ocamlobjinfo.out deleted file mode 100644 index 67719c93..00000000 --- a/samples/ocamlobjinfo.out +++ /dev/null @@ -1,206 +0,0 @@ -File tmp/http_mt.cma - Force custom: no - Extra C object files: - Extra C options: -I/usr/lib/ocaml/3.08.3/netstring -I/usr/lib/ocaml/3.08.3/pcre - Unit name: Http_constants - Interfaces imported: - 45f466ce46f213dae41be77dd8505f5f Buffer - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - 1876ce678cfa5a1961fac21850f71efd Unix - c05573de1d16c626829a86a9114178a3 Http_constants - Uses unsafe features: no - Unit name: Http_types - Interfaces imported: - 45f466ce46f213dae41be77dd8505f5f Buffer - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - 1876ce678cfa5a1961fac21850f71efd Unix - Uses unsafe features: no - Unit name: Http_parser_sanity - Interfaces imported: - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 2f32d87da163d280dc00661dca5ba351 Pcre - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - 1876ce678cfa5a1961fac21850f71efd Unix - 9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity - c05573de1d16c626829a86a9114178a3 Http_constants - d2109515bc23cdb3fdf5138eb0753ef1 Neturl - 21f21a0fe1dc667be7e854f573c182b7 Hashtbl - Uses unsafe features: no - Unit name: Http_misc - Interfaces imported: - 1a18647ed18cd2752c5d8b422aef8fc7 Netbuffer - 4153115c366a8fde539da120f5e0b928 Lexing - a904b798dd9665c2d3635636d293403c Array - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - d2bc46d76835aafc05c738e5c8f8d36f Netchannels - 2f32d87da163d280dc00661dca5ba351 Pcre - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 1876ce678cfa5a1961fac21850f71efd Unix - fe56d403fb8e5d3f355cd87c60345c17 Netdate - 5a0e3217fc356bd18f60bff31861dfd3 List - 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc - Uses unsafe features: no - Unit name: Http_common - Interfaces imported: - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - 1876ce678cfa5a1961fac21850f71efd Unix - c05573de1d16c626829a86a9114178a3 Http_constants - aeb4d75d3f09d12fbce675d38c459007 Http_common - Uses unsafe features: no - Unit name: Http_threaded_tcp_server - Interfaces imported: - 71f888453b0f26895819460a72f07493 Pervasives - 35ef57fc877713cafe0056af23e72f71 Http_threaded_tcp_server - 1876ce678cfa5a1961fac21850f71efd Unix - 05c29ad9b353d94564b9f8f4672a3c66 Thread - Uses unsafe features: no - Unit name: Http_tcp_server - Interfaces imported: - 45f466ce46f213dae41be77dd8505f5f Buffer - 71f888453b0f26895819460a72f07493 Pervasives - 35ef57fc877713cafe0056af23e72f71 Http_threaded_tcp_server - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - 1876ce678cfa5a1961fac21850f71efd Unix - 8cce770a42b7d0e4d85569c15d7841d6 Sys - e5acc406e34cd0fed3383020b7adddc3 Http_tcp_server - Uses unsafe features: no - Unit name: Http_parser - Interfaces imported: - 1a18647ed18cd2752c5d8b422aef8fc7 Netbuffer - 4153115c366a8fde539da120f5e0b928 Lexing - a904b798dd9665c2d3635636d293403c Array - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 2f32d87da163d280dc00661dca5ba351 Pcre - d2bc46d76835aafc05c738e5c8f8d36f Netchannels - e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 1876ce678cfa5a1961fac21850f71efd Unix - 5a0e3217fc356bd18f60bff31861dfd3 List - 9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity - 3e948b0e41d832c5b47173bc09ac8150 Netencoding - c05573de1d16c626829a86a9114178a3 Http_constants - 2228f51249f46513c6197a189eda178f Netconversion - d2109515bc23cdb3fdf5138eb0753ef1 Neturl - aeb4d75d3f09d12fbce675d38c459007 Http_common - 21f21a0fe1dc667be7e854f573c182b7 Hashtbl - Uses unsafe features: no - Unit name: Http_message - Interfaces imported: - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 1876ce678cfa5a1961fac21850f71efd Unix - 9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity - 5a0e3217fc356bd18f60bff31861dfd3 List - 86c5eaed52521c5606cb4de8885cb266 Http_message - c05573de1d16c626829a86a9114178a3 Http_constants - f8ae506a7cb4411e963d4472e99129ab CamlinternalOO - d2109515bc23cdb3fdf5138eb0753ef1 Neturl - 747ef8c0279596e8e3ead3d8049103ed Obj - aeb4d75d3f09d12fbce675d38c459007 Http_common - 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc - 21f21a0fe1dc667be7e854f573c182b7 Hashtbl - Uses unsafe features: no - Unit name: Http_request - Interfaces imported: - 1a18647ed18cd2752c5d8b422aef8fc7 Netbuffer - 4153115c366a8fde539da120f5e0b928 Lexing - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 2f32d87da163d280dc00661dca5ba351 Pcre - e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser - d2bc46d76835aafc05c738e5c8f8d36f Netchannels - a3a8d51dd2bd69e7352f8f339875f0a5 Http_request - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 1876ce678cfa5a1961fac21850f71efd Unix - 5a0e3217fc356bd18f60bff31861dfd3 List - 86c5eaed52521c5606cb4de8885cb266 Http_message - 3e948b0e41d832c5b47173bc09ac8150 Netencoding - 2228f51249f46513c6197a189eda178f Netconversion - f8ae506a7cb4411e963d4472e99129ab CamlinternalOO - d2109515bc23cdb3fdf5138eb0753ef1 Neturl - 747ef8c0279596e8e3ead3d8049103ed Obj - aeb4d75d3f09d12fbce675d38c459007 Http_common - 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc - 21f21a0fe1dc667be7e854f573c182b7 Hashtbl - Uses unsafe features: no - Unit name: Http_daemon - Interfaces imported: - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser - a3a8d51dd2bd69e7352f8f339875f0a5 Http_request - 2f32d87da163d280dc00661dca5ba351 Pcre - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 1876ce678cfa5a1961fac21850f71efd Unix - 5207ef38468f5d823fc8b4d165f910b0 Http_daemon - 9b93712a344b3b9849a73ce19d8c72ce Http_parser_sanity - 5a0e3217fc356bd18f60bff31861dfd3 List - 8cce770a42b7d0e4d85569c15d7841d6 Sys - e5acc406e34cd0fed3383020b7adddc3 Http_tcp_server - c05573de1d16c626829a86a9114178a3 Http_constants - 0adcd5a01603ded6c591dc6133498d65 Gc - f8ae506a7cb4411e963d4472e99129ab CamlinternalOO - d2109515bc23cdb3fdf5138eb0753ef1 Neturl - a5bb944075f8bf57d7a53a727ebad18c Printexc - 747ef8c0279596e8e3ead3d8049103ed Obj - aeb4d75d3f09d12fbce675d38c459007 Http_common - 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc - 21f21a0fe1dc667be7e854f573c182b7 Hashtbl - Uses unsafe features: no - Unit name: Http_response - Interfaces imported: - a904b798dd9665c2d3635636d293403c Array - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 2f32d87da163d280dc00661dca5ba351 Pcre - 19439a1c72f7e75bc192c83f3940aa50 Http_response - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 1876ce678cfa5a1961fac21850f71efd Unix - 5207ef38468f5d823fc8b4d165f910b0 Http_daemon - 86c5eaed52521c5606cb4de8885cb266 Http_message - c05573de1d16c626829a86a9114178a3 Http_constants - f8ae506a7cb4411e963d4472e99129ab CamlinternalOO - 747ef8c0279596e8e3ead3d8049103ed Obj - aeb4d75d3f09d12fbce675d38c459007 Http_common - 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc - Uses unsafe features: no - Unit name: Http_user_agent - Interfaces imported: - a904b798dd9665c2d3635636d293403c Array - be82cfc078031e7e98378d3e89d18aec Printf - 45f466ce46f213dae41be77dd8505f5f Buffer - 2f32d87da163d280dc00661dca5ba351 Pcre - e4fb6d88bd013e8c6b7d5cdf5da2818d Http_parser - 71f888453b0f26895819460a72f07493 Pervasives - 1aa78eb234c3fc3bc0f416b291573a6f Http_types - fec8292bb1a02d2c7b8b4ba7b83a7d8b String - 6511422bf82e8975861e4959a09d7874 Http_user_agent - 1876ce678cfa5a1961fac21850f71efd Unix - d2109515bc23cdb3fdf5138eb0753ef1 Neturl - a5bb944075f8bf57d7a53a727ebad18c Printexc - aeb4d75d3f09d12fbce675d38c459007 Http_common - 7fdc51ac4d1ae62200a5f17a6447fe04 Http_misc - 21f21a0fe1dc667be7e854f573c182b7 Hashtbl - Uses unsafe features: no -- 2.30.2